from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select

from pages.base_page import BasePage
from selenium.webdriver.common.alert import Alert
"""产品页面做的操作"""
class ProductPage(BasePage):
    click_add_product_locator=(By.CSS_SELECTOR,'body > div.container > div.row > div:nth-child(2) > div.pull-right > a')
    #点击添加产品
    def click_add_product(self):
        self.driver.find_element(*self.click_add_product_locator).click()